package com.hmy.finance.api.bo.core.request.enums;

import lombok.Getter;

/**
 * @author songkf
 */

@Getter
public enum StatementActionTypeEnum {
    PRE(0, "预览"),
    SAVE(1, "保存"),
    SIGN(2, "发起合同签署");


    private final Integer value;
    private final String desc;

    StatementActionTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static String getDescByValue(Integer value) {
        for (StatementActionTypeEnum status : StatementActionTypeEnum.values()) {
            if (status.getValue().equals(value)) {
                return status.getDesc();
            }
        }
        return null;
    }
}
